package io.bluerain.bocket.callback;

import io.bluerain.bocket.message.Message;

import java.io.IOException;
import java.io.InputStream;
import java.net.Socket;

/**
 * Created by foredawn on 15-8-14.
 * 接收到通信消息后的回调处理接口
 */
public interface ReceiverHandler {

    void receive(Message message, InputStream inputStream) throws IOException;
}
